$(() => {
	let bannerList = genSwiperImageList();
	$("#banner_box").html('');
	if (bannerList && bannerList.length > 0) {
		let itemHtml = bannerList.map((item, i) => {
			return `<div class="swiper-slide">
							<img src="${item.img}" class="home_banner_img"/>
						</div>`;
		});

		$("#banner_box").html(itemHtml);
		let swiper = new Swiper('.swiper_banner', {
			initialSlide: 0,
			pagination: '.pagination_banner',
			slidesPerView: 'auto',
			paginationClickable: true,
			spaceBetween: 30,
			noSwiping: false,
			centeredSlides: true,
			loop: true,
			autoplay: 2500,
			autoplayDisableOnInteraction: false
		});
	}
})
